﻿using Core.Toolkit.Core.Entitys;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Core.SimpleTemp.Entitys
{
    /// <summary>
    /// 部门实体
    /// </summary>
    public class SysDepartment : Entity
    {
        /// <summary>
        /// 父级ID
        /// </summary>
        public Guid? ParentId { get; set; }
        /// <summary>
        /// 部门代码
        /// </summary>
        [StringLength(50)]
        public string Code { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        [StringLength(100)]
        public string Name { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 页面排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 隶属工厂
        /// </summary>
        
        public Guid? CreateFactory { get; set; }
        /// <summary>
        /// Mark01
        /// </summary>
        [StringLength(100)]
        public string Mark01 { get; set; }
        /// <summary>
        /// Mark02
        /// </summary>
        [StringLength(100)]
        public string Mark02 { get; set; }
        /// <summary>
        /// Mark03
        /// </summary>
        [StringLength(100)]
        public string Mark03 { get; set; }

        public ICollection<SysDepartmentDuty> SysDepartmentDuties { get; set; }

    }
}
